package s2elinshu;

public class J12OOP {
	public static void main(String[] args) {
		 J12ExCompany apple;
		 apple = new J12ExCompany();
		 
		 J12ExCompany google;
		 google = new J12ExCompany();
	         
		 J12Ex2Employee taehee;
		 taehee = new J12Ex2Employee();
		 
		 J12Ex2Employee sooji;
		 sooji = new J12Ex2Employee();
		 
		 J12Ex3Wine sablis;
		 sablis = new J12Ex3Wine();
		 
		 J12Ex3Wine bourgogne;
		 bourgogne = new J12Ex3Wine();
		 
		 // 객체생성을 한 줄에 선언
		 J12ExCompany a = new J12ExCompany();
		 J12Ex2Employee b = new J12Ex2Employee();
		 J12Ex3Wine c = new J12Ex3Wine();
		 

		 
	} // main 닫음
		// 회사 class
		// class 안에 class를 넣을 땐 public을 넣으면 안 됨
} // J12OOP class 닫음


	class J12ExCompany {
		String name;
		String dateCreated;

		public void paySalary(String name, int salary) {
		} // paySalary 닫음
	} // J12ExCompany class닫음

	class J12Ex2Employee {
		String name;
		String hireDate;
		int salary;

		public void checkSalary() {
			System.out.println("현재 봉급은" + salary + "입니다.");
		} // ckeckSalary 닫음
	} //  J12Ex2Employee class닫음

	class J12Ex3Wine {
		String manufacturer;
		String name;
		String country;
		String region;
		String kind;
		int year;
		int grade;

		private void makeWine() {
        System.out.println("이"+name+"와인은"+year+"산 와인입니다.");
		} // makeWine 닫음
	} // J12Ex3Wine class 닫음
	


